-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add image support in file upload #2007
base: main
Are you sure you want to change the base?
Conversation
…ata into image-support-file-upload
if image: | ||
base64_image = await process_image(image) | ||
try: | ||
base64_image = await process_image(image) | ||
base64_images.append(base64_image) | ||
except Exception as e: | ||
logger.error(f"Error processing image: {e}") | ||
raise HTTPException(status_code=400, detail="Error processing image") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
if image: | ||
base64_image = process_image(image) | ||
try: | ||
base64_image = process_image(image) | ||
base64_images.append(base64_image) | ||
except Exception as e: | ||
logger.error(f"Error processing image: {e}") | ||
raise HTTPException(status_code=400, detail="Error processing image") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Description
update.
Type of change
Please check the options that are relevant:
Checklist
./scripts/format.sh
and./scripts/validate.sh
to ensure code is formatted and linted.Additional Notes
Include any deployment notes, performance implications, security considerations, or other relevant information (e.g., screenshots or logs if applicable).